package com.dubbo.service;

import com.dubbo.entity.Admin;
import com.dubbo.mapper.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 客户端测试
 *
 * @author zhang he qiang
 */
@Service
@SuppressWarnings("all")
public class AdminServiceImpl implements AdminService {
    @Autowired
    AdminMapper mapper;

    @Override
    public Admin selectByPrimaryKey(Long id) {
        return mapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Admin> selectAll() {
        return mapper.selectAll();
    }
}
